/*
 * 
 * 
 * 
 */
package com.hboxs.asl.service.impl;

import com.hboxs.asl.dao.DeliveryTemplateDao;
import com.hboxs.asl.entity.DeliveryTemplate;
import com.hboxs.asl.service.DeliveryTemplateService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Service - 快递单模板
 */
@Service("deliveryTemplateServiceImpl")
public class DeliveryTemplateServiceImpl extends BaseServiceImpl<DeliveryTemplate, Long> implements DeliveryTemplateService {

    @Resource(name = "deliveryTemplateDaoImpl")
    private DeliveryTemplateDao deliveryTemplateDao;

    @Resource(name = "deliveryTemplateDaoImpl")
    public void setBaseDao(DeliveryTemplateDao deliveryTemplateDao) {
        super.setBaseDao(deliveryTemplateDao);
    }

    @Transactional(readOnly = true)
    public DeliveryTemplate findDefault() {
        return deliveryTemplateDao.findDefault();
    }

}